<template>
  <div>
    <p class="bg-amber-200 g-font-15">啊啊啊啊啊啊啊啊</p>
    <p class="g-font-14">{{passData}}</p>
    <n-button @click="parentsDo">通知父组件</n-button>
  </div>
</template>

<script lang='ts' setup>
import {ref, reactive, defineEmits} from 'vue'

defineProps<{ passData:string }>()

const emit = defineEmits<{(e:string,val:any): void}>()

const parentsDo = () =>{
  emit('clicks',1)
}

</script>

<style lang='scss' scoped>

</style>
